<?php
class Model_StudentMessageOutbox extends CCMIS_Model {
    //Database student_message_outbox
    public function __construct(){
        parent::__construct();

        $this->load->database();
    }

    public function add($studentMemberID, $messageID)
    {
        $sql = 'INSERT INTO `student_message_outbox`(
        `StudentMemberIDOutboxOwner`,
        `StudentMessageID`
        )
        VALUES (?, ?)';

        $this->db->query($sql, array($studentMemberID, $messageID));

        return $this->db->insert_id();
    }

}